<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>MyDocuments</title>
    <base href="/" />
    <!--<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />-->
    <link href="css/app.css" rel="stylesheet" />
    <link href="MyDocuments.Client.styles.css" rel="stylesheet" />
    <link href="manifest.json" rel="manifest" />
    <link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
    <link rel="apple-touch-icon" sizes="192x192" href="icon-192.png" />
    <link href="css/font-awesome/css/all.css" rel="stylesheet" />
    <!--<link href="/_content/PSC.Blazor.Components.MarkdownEditor/css/easymde.min.css" rel="stylesheet" />-->
    <!--<link href="/_content/PSC.Blazor.Components.MarkdownEditor/css/font-awesome.min.css" rel="stylesheet" />-->
    <link href="js2/easymde.min.css?v=1.0.0" rel="stylesheet" />
    <link href="_content/AntDesign/css/ant-design-blazor.css?v=1.0.0" rel="stylesheet" />
    <script src="_content/AntDesign/js/ant-design-blazor.js?v=1.0.0"></script>
    <script src="lib/markdowFormat/index.js?v=1.0.0"></script>
</head>

<body>

    <div style="display:none;" id="mermaid" class="mermaid"></div>

    <div id="app">Loading...</div>

    <div id="blazor-error-ui">
        An unhandled error has occurred.
        <a href="" class="reload">Reload</a>
        <a class="dismiss">🗙</a>
    </div>
    <!--<script src="_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js"></script>-->
    <script src="_framework/blazor.webassembly.js" autostart="false"></script>
    <!--<script>navigator.serviceWorker.register('service-worker.js');</script>-->
    <!--<script src="/_content/PSC.Blazor.Components.MarkdownEditor/js/easymde.min.js"></script>-->
    <!--<script src="/_content/PSC.Blazor.Components.MarkdownEditor/js/markdownEditor.js"></script>-->

    <script type="module">
        import { BrotliDecode } from './js2/decode.min.js';
        Blazor.start({
            loadBootResource: function (type, name, defaultUri, integrity) {
                if (type !== 'dotnetjs' && location.hostname !== 'localhost') {
                    return (async function () {
                        const response = await fetch(defaultUri + '.br', { cache: 'no-cache' });
                        if (!response.ok) {
                            throw new Error(response.statusText);
                        }
                        const originalResponseBuffer = await response.arrayBuffer();
                        const originalResponseArray = new Int8Array(originalResponseBuffer);
                        const decompressedResponseArray = BrotliDecode(originalResponseArray);
                        const contentType = type ===
                            'dotnetwasm' ? 'application/wasm' : 'application/octet-stream';
                        return new Response(decompressedResponseArray,
                            { headers: { 'content-type': contentType } });
                    })();
                }
            }
        });
    </script>

    <script src="lib/query/jquery.js?v=1.0.0"></script>
    <script src="lib/query/jquery.shortcuts.min.js?v=1.0.0"></script>
    <script src="js2/easymde.min.js?v=1.0.0"></script>
    <script src="js2/markdownEditor.js?v=1.0.0"></script>

    <script src="app.js"></script>

    <style>
        .hljs-string {
            color: #dd521d;
        }

        .hljs-doctag, .hljs-keyword, .hljs-meta .hljs-keyword, .hljs-template-tag, .hljs-template-variable, .hljs-type, .hljs-variable.language_ {
            color: #246beb;
        }

        .editor-statusbar, .editor-toolbar {
            white-space: nowrap;
        }
    </style>

    <script>
        $('head').append(`<style> .CodeMirror.CodeMirror-wrap {height: ${document.body.clientHeight - 160}px;} </style>`);
        
    </script>
</body>

</html>
